import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBApplication.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBNavigator.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBProjectPopPage/YBZuZhiGuanLiQuanXianPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiSubImageTitlePage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBUtils/YBBaseUtils/YBisLoginUtils.dart';

class YBWorkTaiHuKePage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Container(
        height: YBTextStyle.adapterSize60,
        child:Row(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            Container(
              child: InkWell(
                child: YBWorkTaiSubImageTitlePage(imageStr:"workTaiWenZhangShengChengQi",titleStr: YBChineseText.workTaiFenXiangHuKeWriter,widthValue:YBTextStyle.adapterSize32,heightValue:YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.workTaiSubTitleText,),
                onTap: (){
                  if(YBisLoginUtils.isLogin() == true){
                    YBZuZhiGuanLiQuanXianPage.showWenZhangShengChengQI(context);
                   // YBApplication.router.navigateTo(context, '/workTaiPage/findYuanchuangWenZhangYePage');
                  }else{
                    YBApplication.router.navigateTo(context, '/loginIn');
                  }
                },
              ),
            ),
            Container(
              child: InkWell(
                child: YBWorkTaiSubImageTitlePage(imageStr:"workTaiReMenWenZhang",titleStr: YBChineseText.workTaiReMenWenZhangContent, widthValue: YBTextStyle.adapterSize32,heightValue: YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.workTaiSubTitleText,),
                onTap: (){
                  if(YBisLoginUtils.isLogin() == true){
                   // YBZuZhiGuanLiQuanXianPage.showWenZhangShengChengQI(context);
                    YBNavigatorUtil.jump(context, '/workTaiPage/ReMenWenZhangPage');
                    //YBApplication.router.navigateTo(context, '/workTaiPage/workTaizhuanzaiWechatWenZhangPage');
                  }else{
                    YBApplication.router.navigateTo(context, '/loginIn');
                  }

                },
              ),
            ),
            Container(
              child: InkWell(
                child: YBWorkTaiSubImageTitlePage(imageStr:"workTaizuzhiwenzhang",titleStr: YBChineseText.workTaiZuZhiWenZhangContent, widthValue: YBTextStyle.adapterSize32,heightValue: YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.workTaiSubTitleText,),
                onTap: (){
                  if(YBisLoginUtils.isLogin() == true){
                    YBNavigatorUtil.jump(context, '/workTaiPage/zuZhiWenZhangPage');
                  }else{
                    YBApplication.router.navigateTo(context, '/loginIn');
                  }
                },
              ),
            ),
            Container(
              child: InkWell(
                child: YBWorkTaiSubImageTitlePage(imageStr:"workTaiwodewenzhang",titleStr: YBChineseText.workTaiMyDeWenZhangContent, widthValue: YBTextStyle.adapterSize32,heightValue: YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.workTaiSubTitleText,),
                onTap: (){
                  if(YBisLoginUtils.isLogin() == true){
                    YBNavigatorUtil.jump(context, '/workTaiPage/workTaiWoDeWenZhangPage');
                  }else{
                    YBApplication.router.navigateTo(context, '/loginIn');
                  }
                },
              ),
            ),
          ],
        ),
    );
  }

}
